package com.zhiche.lisa.bms.dao.model.driver;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author yangzhiyu
 * @since 2019-09-18
 */
@TableName("d_car_allowance")
public class DCarAllowance extends Model<DCarAllowance> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 车型编码
     */
	@TableField("vc_type_id")
	private String vcTypeId;
    /**
     * 补贴金额
     */
	private BigDecimal subsidies;
    /**
     * 生效日期
     */
	@TableField("effective_date")
	private Date effectiveDate;
    /**
     * 失效日期
     */
	@TableField("invalid_date")
	private Date invalidDate;
    /**
     * 优先级 越小级别越大
     */
	private Integer priority;
    /**
     * 起始省
     */
	@TableField("send_province")
	private String sendProvince;
    /**
     * 目的省
     */
	@TableField("end_province")
	private String endProvince;
    /**
     * 排除城市
     */
	@TableField("exclude_city")
	private String excludeCity;
    /**
     * 补贴类型 1车型 2路线
     */
	private Integer type;
    /**
     * 创建人
     */
	@TableField("insert_user")
	private String insertUser;
    /**
     * 插入时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getVcTypeId() {
		return vcTypeId;
	}

	public void setVcTypeId(String vcTypeId) {
		this.vcTypeId = vcTypeId;
	}

	public BigDecimal getSubsidies() {
		return subsidies;
	}

	public void setSubsidies(BigDecimal subsidies) {
		this.subsidies = subsidies;
	}

	public Date getEffectiveDate() {
		return effectiveDate;
	}

	public void setEffectiveDate(Date effectiveDate) {
		this.effectiveDate = effectiveDate;
	}

	public Date getInvalidDate() {
		return invalidDate;
	}

	public void setInvalidDate(Date invalidDate) {
		this.invalidDate = invalidDate;
	}

	public Integer getPriority() {
		return priority;
	}

	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	public String getSendProvince() {
		return sendProvince;
	}

	public void setSendProvince(String sendProvince) {
		this.sendProvince = sendProvince;
	}

	public String getEndProvince() {
		return endProvince;
	}

	public void setEndProvince(String endProvince) {
		this.endProvince = endProvince;
	}

	public String getExcludeCity() {
		return excludeCity;
	}

	public void setExcludeCity(String excludeCity) {
		this.excludeCity = excludeCity;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getInsertUser() {
		return insertUser;
	}

	public void setInsertUser(String insertUser) {
		this.insertUser = insertUser;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "DCarAllowance{" +
			", id=" + id +
			", vcTypeId=" + vcTypeId +
			", subsidies=" + subsidies +
			", effectiveDate=" + effectiveDate +
			", invalidDate=" + invalidDate +
			", priority=" + priority +
			", sendProvince=" + sendProvince +
			", endProvince=" + endProvince +
			", excludeCity=" + excludeCity +
			", type=" + type +
			", insertUser=" + insertUser +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			"}";
	}
}
